package cn.iocoder.yudao.module.erp.controller.admin.contacts.supplier.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 供应商新增/修改 Request VO")
@Data
public class SupplierSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23217")
    private Long id;

    @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "名字不能为空")
    private String name;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编号不能为空")
    private String code;

    @Schema(description = "联系人", example = "赵六")
    private String contacterName;

    @Schema(description = "联系电话")
    private String mobile;

    @Schema(description = "电子邮箱")
    private String email;

    @Schema(description = "描述", example = "随便")
    private String description;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "供应商分组id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "供应商id不能为空")
    private Integer groupId;

    @Schema(description = "供应商分组名",example = "制造业")
    private String groupName;

}